import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 教室信息
    roomInfo: '',
  },
  mutations: {
    setroomInfo(state, roomInfo) {
      state.roomInfo = roomInfo
    },
  },
  actions: {
    // 审核操作
    changeroomInfo({ commit }, data) {
      commit('setroomInfo', data)
    },
  },
})
